Refraction of atmospheric light